import http from "@/api/http.js";

export default {
  login(data) {
    // post表单传参数
    return http.post("/user/login", data, {
      headers: { "Content-Type": "application/x-www-form-urlencoded" },
    });
  },
  logout() {
    return http.post("/user/logout");
  },
  getUserInfo() {
    return http.get("/user/info");
  },
  getUserMenus() {
    return http.get("/user/menus");
  },
};
